package com.itheima.reggie.controller;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.service.PoiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.time.LocalDateTime;

@RequestMapping("/poi")
@RestController
public class POIController {

    @Autowired
    private PoiService poiService;

    @GetMapping("/derive")
    public R<String> derive() throws IOException {
        poiService.derive();
        return R.success("成功导出");
    }
}
